package com.gsoe.auth.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author xiaoma
 * @since 2024-11-11
 */
@Getter
@Setter
public class Power implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 权限名
     */
    private String powerName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Power power = (Power) o;
        return Objects.equals(id, power.id);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }
}
